package com.ljx.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import springfox.documentation.spring.web.plugins.Docket;

/**
 * @author LJX
 * @Description: TODO
 * @Date: 2022/11/18 10:06
 * @Version 1.0
 * 定义定时器的业务类
 */
@Component // 交于spring容器帮助我们创建该类的对象
public class MyQuartz {

//	// 业务代码---规定什么时候执行该业务代码
//	@Scheduled(cron = "0/2 * * * * ? ")
//	public void schedule(){
//		System.out.println("abcdefghijklmnopqwyz");
//	}
}
